package com.syl.ippool.utils;

import com.syl.ippool.domain.IpBasePojo;

import java.io.Serializable;
import java.util.List;

public class WebResult implements Serializable {

    private Object date;

    private String status;
    private String msg;

    private int count;

    public static WebResult ok(Object ipBasePojos) {
        WebResult result = new WebResult();
        result.setStatus("200");
        result.setDate(ipBasePojos);
        return result;
    }

    public static WebResult err(String msg) {
        WebResult result = new WebResult();
        result.setStatus("500");
        result.setMsg(msg);
        return result;
    }


    public Object getDate() {
        return date;
    }

    public void setDate(Object date) {
        this.date = date;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }
}
